lines = fields = 0

text = ""

line = 0

open("data.txt") {|file|
  while l = file.gets
  	if line == 0
  		text += "["
  	end
  	
  	
  	if l.chomp == ""
  		text = text.sub(/,$/,'')
			text += "];\n"
			line = 0
			next
  	end
  	
    text += "'" + l.chomp + "',"
    line = line + 1
    
  end
}


puts text
